function computedFPS2(cpu,vga,storage) {
 let cpuSpeed='';
 let cpuCores='';
 let cpuScore = '';
 let gpuSpeed = ''; // GPU 主频（GHz）
 let gpuMemory = ''; // GPU 显存（GB）
 let gpuScore = '';
 let memorySize = ''; // 内存容量（GB）
 let memoryScore = '';
 let totalScore = ''; // 总分数
 const db = wx.cloud.database();
 const _ = db.command;
 let score = {
  gumu: "暂无数据",
  aodesai: "暂无数据",
  chiji: "暂无数据",
 };
 //异步
 db.collection('cpu').where({
  name: _.eq(cpu)
 }).get().then(res => {
  cpuSpeed = res.data[0].zhupin; // CPU 主频（GHz）
  cpuCores = res.data[0].heshu; // CPU 核心数
  cpuScore = cpuSpeed * cpuCores * 100;
  console.log('cpuScore：', cpuScore)
  db.collection('xianka').where({
   name: _.eq(vga)
  }).get().then(res => {
   gpuSpeed = res.data[0].he_pin; // GPU 主频（GHz）
   gpuMemory = res.data[0].xiancun; // GPU 显存（GB）
   gpuScore = gpuSpeed * gpuMemory * 10; 
   gpuScore = parseFloat(gpuScore.toFixed(2));
    console.log('gpuScore：', gpuScore)
    db.collection('neicun').where({
     name: _.eq(storage)
    }).get().then(res => {
     // console.log('内存大小：', res.data[0].size)
     memorySize  = res.data[0].size; 
     memoryScore = memorySize * 5; // 内存总分
     totalScore = (cpuScore + gpuScore + memoryScore); // 总分数
     score.gumu = parseFloat((totalScore*0.9).toFixed(2));
     score.aodesai = parseFloat((totalScore*0.7).toFixed(2));
     score.chiji = parseFloat((totalScore*0.8).toFixed(2));
     return score;
    })
  })
 })
 return score;
}

export default computedFPS2